package pub.guoxin.oops.common.protocol.builder;

import lombok.Getter;
import pub.guoxin.oops.common.protocol.entity.map.DataProtocolMap;

/**
 * 实现这个接口表示，实现类是一个命令索引表
 * <p>
 * Created by guoxin on 18-2-25.
 */
@Getter
public class DataProtocolTypeRegister implements DataProtocolRegister<Class, DataProtocolTypeRegister> {

    private DataProtocolMap<Class> register = DataProtocolMap.newDataProtocolMap();

    @Override
    public DataProtocolTypeRegister register(Integer name, Class value) {
        register.register(name, value);
        return this;
    }

}
